﻿
package extremefx.conditions {
	import extremefx.IEnumerable;	
	
	/**
	 * Returns a new CollectionValidator that allows you to validate the preconditions of the given argument.
	 * @param pValue The value to be validated
	 * @param pParamName The argument name that holds the value, or null to use the default one (for getters)
	 * @return A new CollectionValidator containing the pValue and pParamName.
	 */
	public function requiresCollection(pValue:IEnumerable, pParamName:String = null):CollectionValidator {
		var v:CollectionValidator = new CollectionValidator(pValue, pParamName);
		v.setType();
		return v;
	}
}
